package com.javasm.crm.service.productservice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.crm.domin.criteria.BrandCriteria;
import com.javasm.crm.domin.criteria.TypeCriteria;
import com.javasm.crm.domin.entity.productEntity.Brand;
import com.javasm.crm.domin.entity.productEntity.Color;
import com.javasm.crm.domin.entity.productEntity.Type;
import com.javasm.crm.utils.page.PageResult;

import java.util.List;

/**
 * @Author：zhangyang
 * @Version：1.0
 * @Date：2021/7/13-10:35
 * @desp:
 * @since:
 */
public interface TypeService extends IService<Type> {
    List<Type> getAllTypes();
    PageResult<Type> searchPageByCriteria(TypeCriteria typeCriteria);
    int update(Type t);
    int add(Type t);
    int delete(Integer id);
}
